﻿#ifndef ORDERMODEL_H
#define ORDERMODEL_H
#include"ProductModel.h"
//订单
class OrderModel :public ProductModel
{
public:
	OrderModel();
	OrderModel(const ProductModel& product);
	OrderModel(const QVariantMap& data, bool base64 = false);
	~OrderModel();
public:
	QStringList fields()const override;
	QVariantMap toMap(const QStringList& fields, bool base64 = false)const override;
	void setData(const QVariantMap& data, bool base64 = false)override;
	QString createTableSql(const QString& tableName)const override;
public:
	quint64 order_id()const;
	QString account()const;
public:
	void setOrder_id(quint64 id);
	void setAccount(const QString& account);
protected:
	quint64 m_order_id = 0;//订单ID
	QString m_account;//用户账号
};
#endif // !CommodityModel